package ar.uba.fi.algo3.tp3.modelo;

import java.io.Serializable;

public class PuntoRuta implements Serializable {

    private int x;
    private int y;

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public PuntoRuta(int x, int y) {
        this.x = x;
        this.y = y;
    }

    @Override
    public boolean equals(Object obj) {
        PuntoRuta p = (PuntoRuta)obj;
        return (this.x == p.x && this.y == p.y);
    }

    @Override
    public String toString() {
        return "x: " + x + " - y: " + y;
    }
}
